package org.meetunexpectedly.service.video;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meetunexpectedly.entity.video.VideoThumb;

import java.util.List;

/**
 * @Description: 视频点赞服务接口
 * @Author: pupil
 * @Date: 2024/08/22 下午 7:10
 */
public interface VideoThumbService extends IService<VideoThumb> {

    /**
     * 添加点赞记录
     * @param videoThumb
     * @return
     */
    Boolean thumbUp(VideoThumb videoThumb);

    /**
     * 获取点赞用户id
     * @param videoId
     * @return
     */
    List<Long> getThumbUserId(Long videoId);

    /**
     * 点赞状态
     * @param videoId
     * @param userId
     * @return
     */
    Boolean thumbUpState(Long videoId, Long userId);

}
